
               <div class="col-lg-3 col-md-6">
                  <!-- START panel-->
                  <div class="panel panel-primary">
                     <div class="panel-heading">
                        <div class="row">
                           <div class="col-xs-3">
                              <em class="fa <?php echo $this->post_m->get_post_status_icon(1);?> fa-5x"></em>
                           </div>
                           <div class="col-xs-9 text-right">
                              <div class="text-lg"><?php echo $today_post_publish;?></div>
                              <p class="m0">Tin đã đăng</p>
                           </div>
                        </div>
                     </div>
                     <a href="<?php echo admin_url();?>posts/index/1/" class="panel-footer bg-dark bt0 clearfix btn-block">
                        <span class="pull-left">Tổng: <?php echo $total_post_publish;?> tin</span>
                        <span class="pull-right">
                           <em class="fa fa-chevron-circle-right"></em>
                        </span>
                     </a>
                     <!-- END panel-->
                  </div>
               </div>
               <div class="col-lg-3 col-md-6">
                  <!-- START panel-->
                  <div class="panel panel-green">
                     <div class="panel-heading">
                        <div class="row">
                           <div class="col-xs-3">
                              <em class="fa <?php echo $this->post_m->get_post_status_icon(3);?> fa-5x"></em>
                           </div>
                           <div class="col-xs-9 text-right">
                              <div class="text-lg"><?php echo $today_post_deploy_waiting;?></div>
                              <p class="m0">Tin chờ đăng</p>
                           </div>
                        </div>
                     </div>
                     <a href="<?php echo admin_url();?>posts/index/3/" class="panel-footer bg-dark bt0 clearfix btn-block">
                        <span class="pull-left">Tổng: <?php echo $total_post_deploy_waiting;?> tin</span>
                        <span class="pull-right">
                           <em class="fa fa-chevron-circle-right"></em>
                        </span>
                     </a>
                  </div>
                  <!-- END panel-->
               </div>
               <div class="col-lg-3 col-md-6">
                  <!-- START panel-->
                  <div class="panel panel-warning">
                     <div class="panel-heading">
                        <div class="row">
                           <div class="col-xs-3">
                              <em class="fa <?php echo $this->post_m->get_post_status_icon(2);?> fa-5x"></em>
                           </div>
                           <div class="col-xs-9 text-right">
                              <div class="text-lg"><?php echo $today_post_approval_waiting;?></div>
                              <p class="m0">Tin chờ duyệt</p>
                           </div>
                        </div>
                     </div>
                     <a href="javascript:void(0);" class="panel-footer bg-dark bt0 clearfix btn-block">
                        <span class="pull-left">Tổng: <?php echo $total_post_approval_waiting;?> tin</span>
                        <span class="pull-right">
                           <em class="fa fa-chevron-circle-right"></em>
                        </span>
                     </a>
                  </div>
                  <!-- END panel-->
               </div>
               <div class="col-lg-3 col-md-6">
                  <!-- START panel-->
                  <div class="panel panel-danger">
                     <div class="panel-heading">
                        <div class="row">
                           <div class="col-xs-3">
                              <em class="fa fa-arrow-down fa-5x"></em>
                           </div>
                           <div class="col-xs-9 text-right">
                              <div class="text-lg"><?php echo $today_post_down;?></div>
                              <p class="m0">Tin trả lại</p>
                           </div>
                        </div>
                     </div>
                     <a href="javascript:void(0);" class="panel-footer bg-dark bt0 clearfix btn-block">
                        <span class="pull-left">Tổng: <?php echo $total_post_down;?> tin</span>
                        <span class="pull-right">
                           <em class="fa fa-chevron-circle-right"></em>
                        </span>
                     </a>
                  </div>
                  <!-- END panel-->
               </div>


<div class="col-md-4">
<div class="panel panel-default">
   <div class="panel-heading">
	  <div class="panel-title">Hoạt động trên bài viết</div>
   </div>
   <!-- START list group-->
   <div class="list-group">
	  <!-- START list group item-->
     <?php foreach($log_audits as $log)
     { 
      if($log->log_type =='up')
      {
         $log->class_text = '';
         // $log->class_icon = $this->post_m->get_post_status_icon($log->post_new_status);
         $log->class_icon = 'fa-arrow-up';
         switch ($log->post_new_status) {
            case 1:
              $log->class_text = 'text-success';
               break;
            case 2:
              $log->class_text = 'text-warning';
               break;
             case 3:
              $log->class_text = 'text-green';
               break;
            
            default:
               # code...
               break;
         }
      }
      else
      {
         $log->class_text = 'text-danger';
         $log->class_icon = 'fa-arrow-down';
      }
      ?>
<div class="list-group-item">
       <div class="media">
         <div class="pull-left">
            <span class="fa-stack fa-lg">
              <em class="fa fa-circle fa-stack-2x <?php echo $log->class_text;?>"></em>
              <em class="fa <?php echo $log->class_icon;?> fa-stack-1x fa-inverse text-white"></em>
            </span>
         </div>
         <div class="media-body clearfix">
            <div class="media-heading <?php echo $log->class_text;?> m0"><?php echo $this->post_m->get_info_status($log->post_old_status, 'title');?> -> <?php echo $this->post_m->get_info_status($log->post_new_status, 'title');?></div>
            <small class="text-muted pull-right" title="<?php echo date("d/m/Y H:i",$log->log_time);?>"><?php echo humanTiming($log->log_time);?></small>
            <p class="m0">
              <small>Tin <?php echo $log->post_title;?></small>
            </p>
         </div>
       </div>
     </div>
    <?php } ?>
	  <!-- END list group item-->
   </div>
   <!-- END list group-->
   <!-- START panel footer-->
   <div class="panel-footer clearfix">
	  <a href="#" class="pull-left">
		 <small>Load more</small>
	  </a>
   </div>
   <!-- END panel-footer-->
</div>
</div>

<?php $this->load->view($this->template->tpl_prefix_admin.'admin/dashboard_activity2'); ?>
               <style>
               .text-lg {
  padding-bottom: 7px;
    padding-top: 10px;
}
               </style>